/**
 * @ 暴露给全局的样式
 * @ author: LeiHao
 * @ createTime: 2024/3/27
 */


/** =========================== reset =========================== */
html,
body {
    height: 100%;
    // overflow: hidden;
}
body {
    margin: 0;
    color: #333;
    box-sizing: border-box;
    font-family: Microsoft YaHei, PingFang SC, sans-serif;
    -webkit-tap-highlight-color: transparent;
    font-size: 17px;
    background-color: var(--g-color-bg)!important;
    color: #242832;
    &.hidden {
        overflow: hidden;
    }
}

ul, li, p, h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

ul, ol, li {
    list-style: none;
}

* {
    box-sizing: inherit;
}

a {
    text-decoration: none;
    &.underline {
        text-decoration: underline;
    }
    &.link {
        text-decoration: none !important;
    }
}


/** =========================== 全局公用样式 =========================== */
.wrapper {
    width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

// 滚动条样式
::-webkit-scrollbar {
    width: 13px;
    height: 13px;
}
::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.4);
    background-clip: padding-box;
    border: 3px solid transparent;
    border-radius: 7px;
}
::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}
::-webkit-scrollbar-track {
    background-color: transparent;
}
::-webkit-scrollbar-track:hover {
    background-color: #f8fafc;
}

[w-full=''] {
    width: 100%;
}

// textarea 字体跟随系统
textarea {
    font-family: inherit;
}

.text-right {
    text-align: right;
}

.align-center {
    text-align: center;
}

.app-scroll__container {
    overflow: auto;
    overflow-x: hidden;
    height: 100%;
    flex: 1;
    &::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.4);
        border-radius:5px;
    }
    &::-webkit-scrollbar-thumb:hover {
        background-color: rgba(255, 255, 255, 0.5);
    }
    &::-webkit-scrollbar-track {
        background-color: rgba(255, 255, 255, 0);
    }
    &::-webkit-scrollbar-track:hover {
        background-color: rgba(255, 255, 255, 0);
    }
}

// 文件列表
.upload-files {
    display: flex;
    align-items: center;
    &__item {
        display: flex;
        align-items: center;
        margin-left: 10px;
        .icon {
            margin-right: 6px;
        }
        .text {
            color: #787878;
        }
    }
}

/* fade-transform */
.fade-transform--move,
.fade-transform-leave-active,
.fade-transform-enter-active {
    transition: all 0.2s;
}

.fade-transform-leave-active {
    transition: all 0.15s;
}

.fade-transform-enter {
    opacity: 0;
    margin-left: -20px;
}

.fade-transform-leave-to {
    opacity: 0;
    margin-left: 20px;
}

// 主内容区动画
.slide-right-enter-active {
    transition: 0.3s;
}

.slide-right-leave-active {
    transition: 0.2s;
}

.slide-right-enter-from {
    margin-left: -20px;
    opacity: 0;
}

.slide-right-leave-to {
    margin-left: 20px;
    opacity: 0;
}

@import './resources/element-reset.scss';
@import './resources/theme.scss';